package com.mt.api.modules.controller;

import com.mt.api.modules.service.IMenuService;
import com.mt.common.response.WebResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: plover
 * @Date: 2022-04-30
 * @Description: 
 */
@Slf4j
@RestController
@RequestMapping("/app/menu")
public class MenuController {

    @Autowired
    private IMenuService menuService;


    @GetMapping("/getTreeSelectData")
    public WebResponse getTreeSelectData(Integer roleId){
        return menuService.getTreeSelectData(roleId);
    }

}